package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author ServivE
 * @version 0.1
 * @className Att
 * @description
 * @date 2024/11/11 14:52
 * @since jdk17
 */
@Data
@TableName("attr")
@ApiModel("规格属性")
public class Attr {
    @TableId(value = "attr_id", type = IdType.AUTO)
    Integer attr_id;

    Integer shop_id;

    @ApiModelProperty("属性名称")
    String name;
    @ApiModelProperty("属性描述")
    @TableField("`desc`")
    String desc;

    @ApiModelProperty("0:不需要，1:需要")
    Integer search_type;

    @ApiModelProperty("0:销售属性，1:基本属性")
    Integer attr_type;

    @TableField(exist = false)
    List<AttrValue> attrValueList;
}
